//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['U.S. Women's Open - Tuesday','Lancaster Country Club','Lancaster, PA','Tuesday','5/28/2024','7:00 AM','6052152','U-S--Women-s-Open---Tuesday-5-28-2024'],['U.S. Women's Open - Wednesday','Lancaster Country Club','Lancaster, PA','Wednesday','5/29/2024','7:00 AM','6052153','U-S--Women-s-Open---Wednesday-5-29-2024'],['U.S. Women's Open - Thursday','Lancaster Country Club','Lancaster, PA','Thursday','5/30/2024','8:00 AM','5807228','U-S--Women-s-Open---Thursday-5-30-2024'],['U.S. Women's Open - Friday','Lancaster Country Club','Lancaster, PA','Friday','5/31/2024','8:00 AM','5807229','U-S--Women-s-Open---Friday-5-31-2024'],['U.S. Women's Open - Saturday','Lancaster Country Club','Lancaster, PA','Saturday','6/1/2024','8:00 AM','5807230','U-S--Women-s-Open---Saturday-6-1-2024'],['U.S. Women's Open - Sunday','Lancaster Country Club','Lancaster, PA','Sunday','6/2/2024','8:00 AM','5807231','U-S--Women-s-Open---Sunday-6-2-2024'],['2024 U.S. Open Championship - Weekly Badge','Pinehurst Resort','Pinehurst, NC','Monday','6/10/2024','TBD','5760586','2024-U-S--Open-Championship---Weekly-Badge-6-10-2024'],['2024 U.S. Open Championship - Monday Practice','Pinehurst Resort','Pinehurst, NC','Monday','6/10/2024','8:00 AM','5760578','2024-U-S--Open-Championship---Monday-Practice-6-10-2024'],['2024 U.S. Open Championship - Tuesday Practice','Pinehurst Resort','Pinehurst, NC','Tuesday','6/11/2024','8:00 AM','5760579','2024-U-S--Open-Championship---Tuesday-Practice-6-11-2024'],['2024 U.S. Open Championship - Wednesday Practice','Pinehurst Resort','Pinehurst, NC','Wednesday','6/12/2024','8:00 AM','5760580','2024-U-S--Open-Championship---Wednesday-Practice-6-12-2024'],['2024 U.S. Open Championship - Thursday','Pinehurst Resort','Pinehurst, NC','Thursday','6/13/2024','8:00 AM','5760582','2024-U-S--Open-Championship---Thursday-6-13-2024'],['2024 U.S. Open Championship - Friday','Pinehurst Resort','Pinehurst, NC','Friday','6/14/2024','8:00 AM','5760583','2024-U-S--Open-Championship---Friday-6-14-2024'],['2024 U.S. Open Championship - Saturday','Pinehurst Resort','Pinehurst, NC','Saturday','6/15/2024','8:00 AM','5760584','2024-U-S--Open-Championship---Saturday-6-15-2024'],['2024 U.S. Open Championship - Sunday','Pinehurst Resort','Pinehurst, NC','Sunday','6/16/2024','8:00 AM','5760585','2024-U-S--Open-Championship---Sunday-6-16-2024'],['US Senior Open Golf - Wednesday','Newport Country Club','Newport, RI','Wednesday','6/26/2024','8:00 AM','6165124','US-Senior-Open-Golf---Wednesday-6-26-2024'],['US Senior Open Golf - Thursday','Newport Country Club','Newport, RI','Thursday','6/27/2024','8:00 AM','5972082','US-Senior-Open-Golf---Thursday-6-27-2024'],['US Senior Open Golf - Friday','Newport Country Club','Newport, RI','Friday','6/28/2024','8:00 AM','5972083','US-Senior-Open-Golf---Friday-6-28-2024'],['US Senior Open Golf - Saturday','Newport Country Club','Newport, RI','Saturday','6/29/2024','8:00 AM','5972084','US-Senior-Open-Golf---Saturday-6-29-2024'],['US Senior Open Golf - Sunday','Newport Country Club','Newport, RI','Sunday','6/30/2024','8:00 AM','5972086','US-Senior-Open-Golf---Sunday-6-30-2024']],'US Open Golf','http://www.ticketnetwork.com/ticket/US-Open-Golf-events.aspx');